package com.wwg.threads.binghe.concurrent.executor.state;

/**
 * @Description: 线程在waiting上等待
 * @Author: wwg
 * @Date: 2021/5/28
 */
public class WaitingState implements Runnable{
    @Override
    public void run() {
        while (true){
            synchronized (WaitingState.class) {
                try {
                    WaitingState.class.wait();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
